package com.bookshop.aspect.exception;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author g2l
 * @create 2023-12-31 12:16
 */
@Data
@Accessors(chain = true)
public class CustomException extends RuntimeException {
    private int code;

    public CustomException(String message) {
        super(message);
        this.code = 500;
    }
    public CustomException() {
        this.code = 500;
    }
}
